#ifndef _NEW_TREE_WIDGET_H_
#define _NEW_TREE_WIDGET_H_

#include <QTreeWidget>

class QNewTreeWidget : public QTreeWidget
{
	Q_OBJECT

public:
	explicit QNewTreeWidget(QWidget *parent = 0);
	virtual ~QNewTreeWidget(void);

	virtual void keyPressEvent(QKeyEvent *event);
	void clear(void);

	void setRowCount(int nRowCount);
	int getRowCount(void);

	bool setRowItem(int nRowIndex, QTreeWidgetItem* pRowItem);
	QTreeWidgetItem* getRowItem(int nRowIndex);

private:
	QVector<QTreeWidgetItem*>	m_vecRowItem;
};

#endif	// _NEW_TREE_WIDGET_H_